home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / bin / check-sources < prev    next >
Text File  |  1995-07-26  |  1KB  |  38 lines

  1. #!/bin/sh
  2.  
  3. # WIDE AREA INFORMATION SERVER SOFTWARE:
  4. #   No guarantees or restrictions.  See the readme file for the full standard
  5. #   disclaimer.
  6. #
  7. # Script for checking all source in a directory to see if they are alive.
  8. # This is useful for a system administrator.  If an advertized server is
  9. # down consistently, please notify the maintainer and the maintainer of the
  10. # directory of servers that the source came from.  (the master directory of
  11. # servers is maintained by brewster@think.com)
  12. #
  13. # $Log: check-sources.script,v $
  14. # Revision 1.1  1994/08/05  06:52:21  pfeifer
  15. # Release beta 04
  16. #
  17. # Revision 1.2  92/02/23  17:06:03  jonathan
  18. # changed name to waisping (for server logs)
  19. # $Header: /usr/local/ls6/src+data/src/freeWAIS-sf/bin/RCS/check-sources.script,v 1.1 1994/08/05 06:52:21 pfeifer Exp $
  20. #
  21.  
  22. if (test $# -ne 1)
  23. then
  24.     echo "usage: $0 <wais-source-directory>"
  25.     echo "  Checks all sources in the directory <wais-source-directory>"
  26.     echo "  to see if they are responding to WAIS requests."    
  27.     exit 1
  28. fi
  29.  
  30. for s in $1/*.src
  31. do
  32.      waisping -c $1 `basename $s`
  33. done
  34.  
  35.  
  36.  
  37.